package tnp;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.*;
import org.apache.log4j.Logger;
import tnp.service.CommonService;
import com.google.inject.Inject;
/**
 * Homepage
 */
public class HomePage extends WebPage {

	private static final long serialVersionUID = 1L;
	private static Logger log = Logger.getLogger( HomePage.class ); 

	@Inject
	private CommonService service;

    /**
	 * Constructor that is invoked when page is invoked without a session.
	 * 
	 * @param parameters
	 *            Page parameters
	 */
	public HomePage(final PageParameters parameters)
	{
		add(new Link<Void>("master"){
			@Override
			public void onClick(){
				
			}
		});
    	service.doLogin();
        add(new Label("message", "If you see this message wicket is properly configured and running"));
    }
}

